package scenetracer.core.shader;

import scenetracer.SceneState;
import scenetracer.core.Primitive;
import scenetracer.image.Color;

public class ConstantShader extends Shader {
	private Color c;
	
	public ConstantShader(String name, Color c) {
		super(name);
		this.type = "constanst";
		this.c = c;
	}

	@Override
	public void setPrim(Primitive primitive) {
		primitive.setReflectionK(1);
		
	}

	@Override
	public void shade(SceneState state) {
		state.setReflectionColor(c);
		
	}

}
